 <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript" src="<%=request.getContextPath()%>/global/common/js/jquery-1.11.1.min.js"></script>
<%
	   String userInfo = (String)request.getSession().getAttribute("userInfoStr");
%>

<div class="nav-slide">
    <h1><i></i>海尔交互宝</h1>
    <ul class="menu">
        <li class="menu1">
            <a href="<%=request.getContextPath()%>/rest/view/index"><i></i>首页</a>
        </li>
        
        <!-- 循环展现菜单 -->
        <c:forEach var="item" items="${sessionScope.funcList}" varStatus="status">
        	<!-- 如果item.url为空说明本身没有连接，旗下有子菜单 -->
        	 <c:if test="${item.url=='' }">
       				<li class="${item.func_class } menu_down dis ">
			            <a href="#"><i></i>${item.func_name }</a>
			            <ol>
			            	<c:if test="${item.sub_navs.size()!=0 }">
			            		<c:forEach var="sub" items="${item.sub_navs}" varStatus="index">
			            			<li>
			                    		<a href="<%=request.getContextPath()%>${sub.url }"><span>&bull;</span>${sub.name }</a>
			               	 	 	</li>
			            		</c:forEach>
			            		 
			            	</c:if>
			               
			            </ol>
			        </li>
      		 </c:if>
      		 <c:if test="${item.url!='' }">
      		 	 <li class="${item.func_class }">
           			 <a href="<%=request.getContextPath()%>${item.url }"><i></i>${item.func_name }</a>
        		 </li>
      		 	    
      		 </c:if>
       </c:forEach>
       	<li class="menuHelp">
            <a href="<%=request.getContextPath()%>/rest/view/helpCenter"><i></i>帮助中心</a>
        </li>
     
        <!-- <li class="menu2">
            <a href="#"><i></i>用户画像</a>
        </li>
        <li class="menu3 menu_down dis">
            <a href="#"><i></i>活跃用户雷达</a>
            <ol>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
            </ol>
        </li>
        <li class="menu4 menu_down dis">
            <a href="#"><i></i>用户痛点雷达</a>
            <ol>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
            </ol>
        </li>
        <li class="menu5">
            <a href="#"><i></i>用户兴趣雷达</a>
        </li>
        <li class="menu6 menu_down dis">
            <a href="#"><i></i>生活圈</a>
            <ol>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
            </ol>
        </li>
        <li class="menu7">
            <a href="#"><i></i>直销员声呐</a>
        </li>
        <li class="menu8 menu_down dis">
            <a href="#"><i></i>管理员配置</a>
            <ol>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
                <li>
                    <a href="#"><span>&bull;</span>二级菜单</a>
                </li>
            </ol>
        </li> -->
    </ul>
</div>
<script>
		
		var userInfo = <%=userInfo%>
		console.info(userInfo);
		var GLOBAL = {};
		GLOBAL.USER = {};
		GLOBAL.USER.uname = userInfo.userinfo.uname;
		GLOBAL.USER.uid = userInfo.userinfo.uid;
		GLOBAL.USER.token = userInfo.token;
		GLOBAL.USER.uid_token = '?uid='+GLOBAL.USER.uid+"&token="+GLOBAL.USER.token;
		GLOBAL.WEBAPP = '<%=request.getContextPath()%>';
		 ///* GLOBAL.API_PREFIX = 'http://27.223.99.197:8070'  */
		GLOBAL.API_PREFIX = '<%=request.getContextPath()%>/rest/api'
		//问卷答题前缀也是ip前缀
		GLOBAL.SURVEYLINK_PREFIX = 'http://27.223.99.197:8094';
		
		//头像姓名
</script>